import request from '@/utils/request'

// 查询推荐奖励配置列表
export function listNvitationrewards(query) {
  return request({
    url: '/configuration/nvitationrewards/list',
    method: 'get',
    params: query
  })
}

// 查询推荐奖励配置详细
export function getNvitationrewards(id) {
  return request({
    url: '/configuration/nvitationrewards/' + id,
    method: 'get'
  })
}

// 新增推荐奖励配置
export function addNvitationrewards(data) {
  return request({
    url: '/configuration/nvitationrewards',
    method: 'post',
    data: data
  })
}

// 修改推荐奖励配置
export function updateNvitationrewards(data) {
  return request({
    url: '/configuration/nvitationrewards',
    method: 'put',
    data: data
  })
}

// 删除推荐奖励配置
export function delNvitationrewards(id) {
  return request({
    url: '/configuration/nvitationrewards/' + id,
    method: 'delete'
  })
}
